const state = {
    password: '123456',
};

const getters = {
    getPassword(state) {
        return state.password;
    }
};

const mutations = {
    updatePassword(state, newPassword) {
        state.password = newPassword;
    }
};

const actions = {
    updatePassword({commit}, payload) {
        return commit('updatePassword', payload);
    },
};

export default {
    state,
    getters,
    mutations,
    actions
}